package com.ss.pj.sc10.service.feign.fallback;

import com.ss.pj.sc01.pojo.Item;
import com.ss.pj.sc01.vo.JsonResult;
import com.ss.pj.sc10.service.feign.ItemFeignService;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 降级类
 * @author 叁昇
 * @create 2020-11-24-18:32
 */
@Component
public class ItemFeignServiceFB implements ItemFeignService {
    @Override
    public JsonResult<List<Item>> getItems(String orderId) {
        return JsonResult.err("无法获取订单商品列表");
    }

    @Override
    public JsonResult decreaseNumber(List<Item> items) {
        return JsonResult.err("无法修改商品库存");
    }
}
